#@layout()

#define js()
    <script>
    $(function(){
        var _table;
        _table =$("#platformincome-list").DataTable( {
            aLengthMenu:[10,20,50],
            "processing": true,
            "serverSide": true,
            "bLengthChange": false,
            "bSort":false,
            searching: false,//屏蔽datatales的查询框
            "pagingType":   "full_numbers",
            "ajax":{
                "url": "/admin/platformincome/listAll",
                "type": "post",
                "data": function (params) {
                        params["id"]=$("#id").val();
                        params["wh_id"]=$("#wh_id").val();
                        params["money"]=$("#money").val();
                        params["status"]=$("#status").val();
                }
            },
            "columns": [
                    { "data": "id" },
                    { "data": "wh_id_str" },
                    { "data": "with_draw_money"},
                    { "data": "money" },
                    { "data": "status" }
                /* { "data": function(data){
                    var opt="<a href='javascript:;' onclick='edit("+data.id+")'>编辑</a>"+"|";
                     opt+="<a href='javascript:;' onclick='showdetail("+data.id+")'>查看详情|</a>";
                     opt+="<a href='javascript:;' onclick='del("+data.id+")'>删除</a>";
                    return "";
                }
                } */
            ]
        } );
        $("#searchBtn").click(function(){
            _table.ajax.reload();
        });
});
    /*编辑*/
    function edit(id){
        var title="编辑";
        var url="#(contextPath)/admin/platformincome/queryById?id="+id;
        var w="";
        var h=510;
        layer_show(title,url,w,h);
    }
    /*添加*/
    function add(){
        var title="添加";
        var url="#(contextPath)/admin/platformincome/add/";
        var w="";
        var h=510;
        layer_show(title,url,w,h);
    }

    /*删除*/
    function del(id){
        var config = {
        "url":"#(contextPath)/admin/platformincome/deleteById?id="+id,
        data:{}
        };
        var backendTool = new BackendTool(config);
        backendTool.ajaxRequest();
    }
    
    /*查看详情*/
    function showdetail(id){
        var title="查看详情";
        var url="/admin/platformincome/showDetail?id="+id;
        var w="";
        var h=510;
        layer_show(title,url,w,h);
    }
    </script>
#end

#define main()
    #@breadcrumb(["平台服务费管理","平台服务费管理列表"])
   <div class="page-container">
       <div class="mt-20">
           <table class="table table-border table-bordered table-bg table-hover table-sort" id="platformincome-list">
               <thead>
               <tr class="text-c">
                     <th>ID</th>
                     <th>提现网红ID</th>
                     <th>提现金额(单位:元)</th>
                     <th>平台收入(单位:元)</th>
                     <th>状态</th>
               </tr>
               </thead>
               <tbody>
               </tbody>
           </table>
       </div>
   </div>
#end